package day4;
import java.util.Scanner;
public class D4_1 {
    public static void main(String[] args) {
        int min=0;
        Scanner a=new Scanner(System.in);
        System.out.println("请输入第一个数：");
        int num1= a.nextInt();
        System.out.println("请输入第二个数：");
        int num2=a.nextInt();
        System.out.println("请输入第三个数：");
        int num3=a.nextInt();
        if (num1<num2){
            min=num1;
        }
        else{
            min=num2;
        }
        if (num2<num3){
            min=num2;
        }
        else {
            min=num3;
        }
        if (num1<num3){
            min=num1;
        }
        else {
            min=num3;
        }
        System.out.println(min);
    }

}
